//
//  AddCarInfoCell.m
//  STool
//
//  Created by Samuel on 15/9/9.
//
//

#import "AddCarInfoCell.h"

@implementation AddCarInfoCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (IBAction)addCar:(UIButton *)sender {
    CarModel *newRd = [[CarModel alloc]init];
    newRd.carCellType = CAR_NEW_Info;
    newRd.dataDictionary = [[NSMutableDictionary alloc]init];
    [self.delegate tableViewRemoveCellOfCarinfo];
    [self.delegate tableViewAddIndexZeroObject:newRd];
//    [self.delegate.dataArray insertObject:newRd atIndex:0];
//    [self.delegate.tableViews insertRowsAtIndexPaths:[NSArray arrayWithObject:[NSIndexPath indexPathForRow:0 inSection:0]] withRowAnimation:UITableViewRowAnimationRight];
//    [self.delegate.tableViews scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0] atScrollPosition:UITableViewScrollPositionBottom animated:YES];
}
@end
